import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.TYPE, ElementType.METHOD, ElementType.FIELD, ElementType.PARAMETER, ElementType.CONSTRUCTOR, ElementType.LOCAL_VARIABLE})
@Documented
@Inherited
public @interface Anno {
    //属性的类型只能是基本数据类型、String、Class、枚举类型、注解类型、以及以上类型的数组
    String value() default "";
    int num() default 0;
    String[] strs() default {"hello", "world"};
    Anno1 anno1() default @Anno1;
    Class clazz() default String.class;



    enum Season {
        SPRING, SUMMER, AUTUMN, WINTER
    }

    Season season() default Season.SPRING;

    @interface Anno1 {
        String value() default "";
    }
}
